package org.yoao.crm.page;

import java.util.List;
import java.util.Map;

import org.yoao.crm.business.impl.UserServiceImpl;
import org.yoao.crm.business.service.IUserService;
import org.yoao.crm.page.framework.AbstractViewPage;

/**
 * @author yxwonline.com
 * @description 分页内部类  实现AbstractViewPage抽象类的抽象方法
 * @date 2010-7-31 下午04:43:36
 */
public class UserPage extends AbstractViewPage {
	private IUserService userService = new UserServiceImpl();
	
	@Override
	protected List queryPageList(int startRow, int endRow, Map map) throws Exception{
		return userService.view(startRow, endRow, map);
	}

	@Override
	protected int queryTotalRows(Map map) throws Exception{
		return userService.getDataCount(map);
	}
}